package com.ys.timer;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Controller;

import com.ys.mapper.mall.MallMapper;

@Controller
public class TimerGift {
    
    @Autowired
    private MallMapper mallMapper;

    /**
     * 更新过期礼品的使用状态
     */
	@Scheduled(cron = "0 */1 * * * * ")
	public void updateTpAmazonShopOrderDaily() {
		
		mallMapper.updateTmGiftWhenInvalid();
	}
	
}
